package com.itheima_7;

import java.util.Arrays;

public class test_3 {
    public static void main(String[] args) {
        //个字符串：91 27 46 38 50 把个数存到数组中
        String str=" 91 27 4 6 38 50";
         str = str.trim();
        String[] sp = str.split(" ");

        int arr[]=new int[sp.length];

        for (int i = 0; i < sp.length; i++) {
            arr[i] = Integer.parseInt(sp[i]);
        }

        /*Arrays.sort(arr);*/
       /* for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i]+" ");
        }*/
        System.out.println(Arrays.toString(arr));

    }
}
